<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/5/17
 * Time: 14:30
 */

namespace app\admin\validate;


use think\Validate;

class Assemble extends Validate
{

    protected $rule = [
        'good_id'  =>'require',
        'time'  =>'require',
        'number'  =>'require|number',
        'hours'  =>'require|number',
        'a_price'  =>'require',
        '__token__' => 'token'
    ];


    protected $scene = [
        'add'=>['good_id','time','number','hours','a_price','__token__']
    ];

}